home *** CD-ROM | disk | FTP | other *** search
/ Aminet 30 / Aminet 30 (1999)(Schatztruhe)[!][Apr 1999].iso / Aminet / gfx / board / chunkyppc.lha / chunkyppc_protos.h.step3 < prev    next >
Text File  |  1999-01-17  |  9KB  |  232 lines

  1. #ifndef CHUNKYPPC_PROTOS_H
  2. #define CHUNKYPPC_PROTOS_H
  3.  
  4. #include <exec/types.h>
  5. #include <graphics/gfx.h>
  6.  
  7. #define BIT16 1
  8. #define BIT16_SWAP 2
  9. #define BIT16_ROT 4
  10. #define BIT16_SWAP_ROT 8
  11. #define BIT24 16
  12. #define BIT24_ROT 32
  13. #define BIT32 64
  14. #define BIT32_SWAP 128
  15. #define BIT32_ROT 256
  16. #define BIT32_SWAP_ROT 512
  17. #define BIT32_ROT_REVERSE 1024
  18. #define BIT32_SWAP_ROT_REVERSE 2048
  19. #define BIT8 4096
  20.  
  21. struct Soff
  22. {
  23.  int x;
  24.  int y;
  25. };
  26.  
  27. struct Buffers
  28. {
  29.  UBYTE *address;
  30.  UBYTE *mask;
  31. };
  32.  
  33. #ifdef __cplusplus
  34. #define CHUNKYPPC_SPROTOS_CPP
  35. #else
  36. #pragma +
  37. #endif
  38.  
  39. extern "library=ChunkyPPCBase"
  40. {
  41.  void ChunkyNoffFast(struct Library *,UBYTE *, UBYTE *, int, int, int) ;
  42.  void ChunkyNoffFastest(struct Library *,UBYTE *, UBYTE *, int, int, int);
  43.  void ChunkyNoffNormal(struct Library *,UBYTE *, UBYTE *, int, int, int);
  44.  void ChunkyFast(struct Library *,UBYTE *, UBYTE *, int, int, int, int, int);
  45.  void ChunkyFastest(struct Library *,UBYTE *, UBYTE *, int, int, int, int, int);
  46.  void ChunkyNormal(struct Library *,UBYTE *, UBYTE *, int, int, int, int, int);
  47.  void ChunkyFastFull(struct Library *,UBYTE *, UBYTE *, struct Soff *, struct Soff *, int, struct Soff *, int);
  48.  void ChunkyFastestFull(struct Library *,UBYTE *, UBYTE *, struct Soff *, struct Soff *, int, struct Soff *, int);
  49.  void ChunkyNormalFull(struct Library *,UBYTE *, UBYTE *, struct Soff *, struct Soff *, int, struct Soff *, int);
  50.  void c2p_1(struct Library *,UBYTE *, struct BitMap *, int, int);
  51.  void c2p_2(struct Library *,UBYTE *, UBYTE *, UBYTE *, int);
  52.  void c2p_3(struct Library *,void *, void *, int , int , struct Soff * , int , int);
  53.  void c2p_4(struct Library *,UBYTE *,UBYTE *, UBYTE *, struct Soff *,struct Soff *, struct Soff *);
  54.  void ChunkyNoffFastHT(struct Library *,UBYTE *,UBYTE *,int,int,int,int);
  55.  void ChunkyNoffFastestHT(struct Library *,UBYTE *,UBYTE *,int,int,int,int);
  56.  void ChunkyNoffNormalHT(struct Library *,UBYTE *,UBYTE *,int,int,int,int);
  57.  void ChunkyFastHT(struct Library *,UBYTE *,UBYTE *,struct Soff *,int,int,int,int);
  58.  void ChunkyFastestHT(struct Library *,UBYTE *,UBYTE *,struct Soff *,int,int,int,int);
  59.  void ChunkyNormalHT(struct Library *,UBYTE *,UBYTE *,struct Soff *,int,int,int,int);
  60.  void ChunkyFastFullHT(struct Library *,UBYTE *,UBYTE *,struct Soff *,struct Soff *,struct Soff *,struct Soff *,int);
  61.  void ChunkyFastestFullHT(struct Library *,UBYTE *,UBYTE *,struct Soff *,struct Soff *,struct Soff *, struct Soff *, int);
  62.  void ChunkyNormalFullHT(struct Library *,UBYTE *,UBYTE *,struct Soff *,struct Soff *,struct Soff *,struct Soff *, int);
  63.  void ChunkyNoffMask(struct Library *,struct Buffers *,UBYTE *,int,int,int,int);
  64.  void ChunkyMask(struct Library *,struct Buffers *,UBYTE *,struct Soff *,int,int,int,int);
  65.  void ChunkyMaskFull(struct Library *,struct Buffers *,UBYTE *,struct Soff *, struct Soff *,struct Soff *,struct Soff *, int);
  66.  void c2p_HI(struct Library *, UBYTE *, int, UBYTE *, UBYTE *, UBYTE *, UBYTE *, UBYTE *);
  67. }
  68.  
  69. __inline void c2p_HI(UBYTE *address, int num, UBYTE *bpl0, UBYTE *bpl1, UBYTE *bpl2, UBYTE *bpl3, UBYTE *bpl4)
  70. {
  71.  extern struct Library *ChunkyPPCBase;
  72.  c2p_HI(ChunkyPPCBase,address,num,bpl0,bpl1,bpl2,bpl3,bpl4);
  73. }
  74.  
  75. __inline void ChunkyNoffFast(UBYTE *address, UBYTE *data, int w, int h, int bpr)
  76. {
  77.  extern struct Library *ChunkyPPCBase;
  78.  ChunkyNoffFast(ChunkyPPCBase,address,data,w,h,bpr);
  79. }
  80.  
  81. __inline void ChunkyNoffFastest(UBYTE *address, UBYTE *data, int w, int h, int bpr)
  82. {
  83.  extern struct Library *ChunkyPPCBase;
  84.  ChunkyNoffFastest(ChunkyPPCBase,address,data,w,h,bpr);
  85. }
  86.  
  87. __inline void ChunkyNoffNormal(UBYTE *address, UBYTE *data, int w, int h, int bpr)
  88. {
  89.  extern struct Library *ChunkyPPCBase;
  90.  ChunkyNoffNormal(address,data,w,h,bpr);
  91. }
  92.  
  93. __inline void ChunkyFast(UBYTE *address, UBYTE *data, int x, int y, int w, int h, int bpr)
  94. {
  95.  extern struct Library *ChunkyPPCBase;
  96.  ChunkyFast(address,data,x,y,w,h,bpr);
  97. }
  98.  
  99. __inline void ChunkyFastest(UBYTE *address, UBYTE *data, int x, int y, int w, int h, int bpr)
  100. {
  101.  extern struct Library *ChunkyPPCBase;
  102.  ChunkyFastest(address,data,x,y,w,h,bpr);
  103. }
  104.  
  105. __inline void ChunkyNormal(UBYTE *address, UBYTE *data, int x, int y, int w, int h, int bpr)
  106. {
  107.  extern struct Library *ChunkyPPCBase;
  108.  ChunkyNormal(address,data,x,y,w,h,bpr);
  109. }
  110.  
  111. __inline void ChunkyFastFull(UBYTE *address, UBYTE *data, struct Soff *dest, struct Soff *size, int bpr, struct Soff *soff, int sbpr)
  112. {
  113.  extern struct Library *ChunkyPPCBase;
  114.  ChunkyFastFull(address,data,dest,size,bpr,soff,sbpr);
  115. }
  116.  
  117. __inline void ChunkyFastestFull(UBYTE *address, UBYTE *data, struct Soff *dest, struct Soff *size, int bpr, struct Soff *soff, int sbpr)
  118. {
  119.  extern struct Library *ChunkyPPCBase;
  120.  ChunkyFastestFull(address,data,dest,size,bpr,soff,sbpr);
  121. }
  122.  
  123. __inline void ChunkyNormalFull(UBYTE *address, UBYTE *data, struct Soff *dest, struct Soff *size, int bpr, struct Soff *soff, int sbpr)
  124. {
  125.  extern struct Library *ChunkyPPCBase;
  126.  ChunkyNormalFull(address,data,dest,size,bpr,soff,sbpr);
  127. }
  128.  
  129. __inline void c2p_1(UBYTE *buffer, struct BitMap *bm, int width, int height)
  130. {
  131.  extern struct Library *ChunkyPPCBase;
  132.  c2p_1(ChunkyPPCBase,buffer,bm,width,height);
  133. }
  134.  
  135. __inline void c2p_2(UBYTE *buffer, UBYTE *plane0, UBYTE *helpbfr, int PlaneSize)
  136. {
  137.  extern struct Library *ChunkyPPCBase;
  138.  c2p_2(ChunkyPPCBase,buffer,plane0,helpbfr,PlaneSize);
  139. }
  140.  
  141. __inline void c2p_3(void *chunky, void *bitplanes, int chunkyx, int chunkyy, struct Soff *soff, int bitplanesize, int depth)
  142. {
  143.  extern struct Library *ChunkyPPCBase;
  144.  c2p_3(ChunkyPPCBase,chunky,bitplanes,chunkyx,chunkyy,soff,bitplanesize,depth);
  145. }
  146.  
  147. __inline void c2p_4(UBYTE *chunky, UBYTE *Planar, UBYTE *temp, struct Soff *size, struct Soff *off, struct Soff *screensize)
  148. {
  149.  extern struct Library *ChunkyPPCBase;
  150.  c2p_4(ChunkyPPCBase,chunky,Planar,temp,size,off,screensize);
  151. }
  152.  
  153. __inline void ChunkyNoffFastHT(UBYTE *address,UBYTE *data,int w,int h,int bpr,int gfx_type)
  154. {
  155.  extern struct Library *ChunkyPPCBase;
  156.  ChunkyNoffFastHT(ChunkyPPCBase,address,data,w,h,bpr,gfx_type);
  157. }
  158.  
  159. __inline void ChunkyNoffFastestHT(UBYTE *address,UBYTE *data,int w,int h,int bpr,int gfx_type)
  160. {
  161.  extern struct Library *ChunkyPPCBase;
  162.  ChunkyNoffFastestHT(ChunkyPPCBase,address,data,w,h,bpr,gfx_type);
  163. }
  164.  
  165. __inline void ChunkyNoffNormalHT(UBYTE *address ,UBYTE *data,int w,int h,int bpr,int gfx_type)
  166. {
  167.  extern struct Library *ChunkyPPCBase;
  168.  ChunkyNoffNormalHT(ChunkyPPCBase,address,data,w,h,bpr,gfx_type);
  169. }
  170.  
  171. __inline void ChunkyFastHT(UBYTE *address,UBYTE *data,struct Soff *off,int w,int h,int bpr,int gfx_type)
  172. {
  173.  extern struct Library *ChunkyPPCBase;
  174.  ChunkyFastHT(ChunkyPPCBase,address,data,off,w,h,bpr,gfx_type);
  175. }
  176.  
  177. __inline void ChunkyFastestHT(UBYTE *address,UBYTE *data,struct Soff *off,int w,int h,int bpr,int gfx_type)
  178. {
  179.  extern struct Library *ChunkyPPCBase;
  180.  ChunkyFastestHT(ChunkyPPCBase,address,data,off,w,h,bpr,gfx_type);
  181. }
  182.  
  183. __inline void ChunkyNormalHT(UBYTE *address,UBYTE *data,struct Soff *off,int w,int h,int bpr,int gfx_type)
  184. {
  185.  extern struct Library *ChunkyPPCBase;
  186.  ChunkyNormalHT(ChunkyPPCBase,address,data,off,w,h,bpr,gfx_type);
  187. }
  188.  
  189. __inline void ChunkyFastFullHT(UBYTE *address,UBYTE *data,struct Soff *dest,struct Soff *size,struct Soff *bpr,struct Soff *soff,int gfx_type)
  190. {
  191.  extern struct Library *ChunkyPPCBase;
  192.  ChunkyFastFullHT(ChunkyPPCBase,address,data,dest,size,bpr,soff,gfx_type);
  193. }
  194.  
  195. __inline void ChunkyFastestFullHT(UBYTE *address,UBYTE *data,struct Soff *dest,struct Soff *size,struct Soff *bpr, struct Soff *soff, int gfx_type)
  196. {
  197.  extern struct Library *ChunkyPPCBase;
  198.  ChunkyFastestFullHT(ChunkyPPCBase,address,data,dest,size,bpr,soff,gfx_type);
  199. }
  200.  
  201. __inline void ChunkyNormalFullHT(UBYTE *address,UBYTE *data,struct Soff *dest,struct Soff *size,struct Soff *bpr,struct Soff *soff, int gfx_type)
  202. {
  203.  extern struct Library *ChunkyPPCBase;
  204.  ChunkyNormalFullHT(ChunkyPPCBase,address,data,dest,size,bpr,soff,gfx_type);
  205. }
  206.  
  207. __inline void ChunkyNoffMask(struct Buffers *address,UBYTE *data,int w,int h,int bpr,int gfx_type)
  208. {
  209.  extern struct Library *ChunkyPPCBase;
  210.  ChunkyNoffMask(ChunkyPPCBase,address,data,w,h,bpr,gfx_type);
  211. }
  212.  
  213. __inline void ChunkyMask(struct Buffers *address,UBYTE *data,struct Soff *dest,int w,int h,int bpr,int gfx_type)
  214. {
  215.  extern struct Library *ChunkyPPCBase;
  216.  ChunkyMask(ChunkyPPCBase,address,data,dest,w,h,bpr,gfx_type);
  217. }
  218.  
  219. __inline void ChunkyMaskFull(struct Buffers *address,UBYTE *data,struct Soff *dest, struct Soff *size,struct Soff *bpr,struct Soff *soff, int gfx_type)
  220. {
  221.  extern struct Library *ChunkyPPCBase;
  222.  ChunkyMaskFull(ChunkyPPCBase,address,data,dest,size,bpr,soff,gfx_type);
  223. }
  224.  
  225. #ifndef CHUNKYPPC_SPROTOS_CPP
  226. #pragma -
  227. #endif
  228.  
  229. #endif
  230.  
  231.  
  232.